
# 1. 使用元类type(name, bases, namespace)来创建新的类对象

Person = type("Person", (object,), dict(name="tester", age=30))

print(Person.name, Person.age)


# 自定义元类
class Meta:
    pass

class MyClass(metaclass=Meta):
    pass
